package com.kan.bargain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miao.commonn.utils.PageUtils;
import com.miao.commonn.utils.Query;

import com.kan.bargain.dao.RecordingDao;
import com.kan.bargain.entity.RecordingEntity;
import com.kan.bargain.service.RecordingService;


@Service("recordingService")
public class RecordingServiceImpl extends ServiceImpl<RecordingDao, RecordingEntity> implements RecordingService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RecordingEntity> page = this.page(
                new Query<RecordingEntity>().getPage(params),
                new QueryWrapper<RecordingEntity>()
        );

        return new PageUtils(page);
    }

}